package test;

public class SubThread extends Thread {

	private final int i;

	public SubThread(int i) {
		this.i = i;
	}

	@Override
	public void run() {
		try {
			Thread.sleep(1000 * 5);
		} catch (InterruptedException e) {
			e.printStackTrace();
		} finally {
			System.out.println("子线程"+i+"结束");
		}

	}
}